/****************
 *@description:  新进销存管理  接口
 *@author: Xhd
 *@date: 2023-07-14 13:40:35
 *@version: V1.0.0
*************************************************************************/

import React from 'react'

//采购列表
export async function apiGetstockPurchasePage(params) {
  return await React.$post('/manage/api/b/management/stockPurchaseNote/page', params);
}
// 采购列表导出
export async function apiStockPurchaseExport(params) {
  return await React.$post("/manage/api/b/management/stockPurchaseNote/getPurchaseNoteDetailListById", params);
}
//查看采购订单
export async function apiStockPurchaseView(params) {
  return await React.$post('/manage/api/b/management/stockPurchaseNote/view', params);
}

//下推采购单
export async function apiAddStockInLibrary(params){
  return await React.$postJson('/manage/api/b/management/stockInLibrary/addStockInLibrary/Json',params);
}

//修改采购单商品
export async function apiStockPurchaseDetailsEdit(params) {
  return await React.$post('/manage/api/b/management/stockPurchaseDetails/edit', params);
}

// 打印
export async function apiPrintInLibraryOrder(params) {
  return await React.$post('/manage/api/b/management/stockInLibrary/printInLibraryOrder', params);
}

// 查询sku
export async function apiGetGoodsDetail(params) {
  return await React.$post('/manage/api/b/management/goodsInfo/getGoodsDetail', params);
}

//商品列表
export async function apiGetGoodsList(params) {
  return await React.$post('/manage/api/b/management/goodsInfo/goodsList', params);
}